export{}
//interface定义对象类型
interface Person {
    uname: string
    age: number
}

//class定义对象类型
class Person {
    //属性必须有初始值
    uname: string = ''
    age: number = 0

    sayHi(msg:string):void{}
}

let xm:Person = {
    uname:'小明',
    age:20,
    sayHi(msg){
        console.log(msg)
    }
}

xm.sayHi('aaa')